%Generate data
N = 1500;
ds1 = w1.gen_data(N*w1.P);
ds2 = w2.gen_data(N*w2.P);
[ds1_norm,ds2_norm,v]= normalize_data(ds1,ds2);

data1 = w1.gen_data(6500);
data2 = w2.gen_data(6500);

N_test = 1200;
test1 = data1(1901:1901+N_test*w1.P,:);
for i=1:size(test1,1)
    test1(i,:) = test1(i,:)./v;
end
test2 = data2(1901:1901+N_test*w2.P,:);
for i=1:size(test2,1)
    test2(i,:) = test2(i,:)./v;
end

N_new = 1200;
st = 1901+N_test+1;
new1 = data1(st:st+N_new,:);
for i=1:size(new1,1)
    new1(i,:) = new1(i,:)./v;
end
new2 = data2(st:st+N_new,:);
for i=1:size(new2,1)
    new2(i,:) = new2(i,:)./v;
end

% temp = test1;
% test1 = new1;
% new1 = temp;
% 
% temp = test2;
% test2 = new2;
% new2 = temp;